//
//  Element.m
//  NewsApp
//
//  Created by Nguyen .a.Hph on 21/3/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "Element.h"

@implementation Element
@synthesize ID,title,name,image,isMobile,url,sec,sec_next,art,art_title,art_url,art_time,art_image,art_desc,art_detail;
@synthesize sections;

-(id)initWithID:(int)_ID title:(NSString *)_title name:(NSString *)_name image:(NSString *)_image isMobile:(BOOL)_isMobile url:(NSString *)_url sec:(NSString *)_sec sec_next:(NSString *)_sec_next art:(NSString *)_art art_title:(NSString *)_art_title art_url:(NSString *)_art_url art_time:(NSString *)_art_time art_image:(NSString *)_art_image art_desc:(NSString *)_art_desc art_detail:(NSString *)_art_detail{
    
    if ((self = [super init])) {
        self.ID = _ID;
        self.title = _title;
        self.name = _name;
        self.image = _image;
        self.isMobile = _isMobile;
        self.url = _url;
        self.sec = _sec;
        self.sec_next = _sec_next;
        self.art = _art;
        self.art_title = _art_title;
        self.art_url = _art_url;
        self.art_time = _art_time;
        self.art_image = _art_image;
        self.art_desc = _art_desc;
        self.art_detail = _art_detail;
    }
    return self;
}

- (NSString *)description{
    return [[NSString alloc] initWithFormat:@"title: %@; url: %@",self.title,self.url];
}

@end
